package cn.maiyar.email;

import cn.maiyar.email.menu.EmailTextType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 邮件配置
 *
 * @author c.c
 */
@Getter
@Setter
@ConfigurationProperties("meta.email")
public class MailProperties {
    // 是否开启邮件通知
    private boolean enabled = false;
    // 发件人
    private String from;
    // 收件人
    private String[] to;
    // 抄送人
    private String[] cc;
    // 密抄送
    private String[] bcc;
    private String mailSubject;
    private boolean ifSend;
    // 邮件的通知文本类型
    private EmailTextType emailTextType = EmailTextType.TEXT;
}
